<?php
include("class/Comment.class.php");
$comment_id = $_POST['comment_id'];
$vote = $_POST['vote'];
$user_id = $_SESSION['auth'];

$comments = new Comment();
$result = $comments->vote($comment_id, $user_id, $vote);

echo $result;
?>